'use strict';

module.exports = app => {
  const mongoose = app.mongoose;
  const ShopSchema = new mongoose.Schema({
    shopId: { type: String },
    shopName: { type: String },
    address: { type: String },
    defaultPic: { type: String },
    avgPrice: { type: Number },
    shopPower: { type: Number },
    categoryId: { type: Number },
    cityId: { type: Number },
    phoneNo: { type: String },
    shopPowerTitle: { type: String },
    score: { type: Number },
    score1: { type: Number },
    score2: { type: Number },
    score3: { type: Number },
    score4: { type: Number },
    cityName: { type: String },
    shopGroupId: { type: Number },
    refinedScore1: { type: Number },
    refinedScore2: { type: Number },
    refinedScore3: { type: Number },
    mainCategoryId: { type: Number },
    mainCategoryName: { type: String },
    mainRegionName: { type: String },
    addDate: { type: Date },
    reviewCountPic: { type: Number },
    reviewCountAll: { type: Number },
    reviewCountCommon: { type: Number },
    reviewCountBad: { type: Number },
    reviewCountForMore: { type: Number },
    dishTagStrList: { type: Array },
    summarys: { type: Array },
    reviewAllDOList: { type: Array },
    reviewDataList: { type: Array },
  });
  return mongoose.model('Shop', ShopSchema);
};
